#include "projectile.h"
#include <GL/gl.h>
#include <QDebug>

Projectile::Projectile(double angle, double maxRange, double x, double y) : initialAngle_(angle),
maxRange_(maxRange), x_(x), y_(y)
{
}

void Projectile::render()
{
    qDebug() << "Projectile pos: " << x_ << " " << y_;

    glPushMatrix();
    glTranslated(x_, 0.0, 0.0);
    glPointSize(3.0f);
    glBegin(GL_POINTS);
    glColor3f(1.0, .8, .0);
    glVertex2d(0, y_);
    glEnd();
    glPopMatrix();
}
